package Practice05.test4;

public class TempEmployee extends Employee{
    private int hireYears;

    public TempEmployee(String name, int number, int salary) {
        super(name, number, salary);
    }

    public int getHireYears() {
        return hireYears;
    }

    public void setHireYears(int hireYears) {
        this.hireYears = hireYears;
    }

    @Override
    public void raiseSalary(double proportion) {
        super.raiseSalary(proportion * 0.5);
    }
}
